<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta charset="utf-8">
    <title>DataUtil - 电网SDK-2.0</title>
    
    <meta name="description" content="基于思极地图实现的电网SDK-2.0" />
    
        <meta name="keywords" content="电网，sdk，2.0，思极地图" />
        <meta name="keyword" content="电网，sdk，2.0，思极地图" />
    
    
    
    <meta property="og:title" content="电网SDK-2.0"/>
    <meta property="og:type" content=""/>
    <meta property="og:image" content=""/>
    
    <meta property="og:url" content=""/>
    
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
    <script src="scripts/nav.js" defer></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav >
    
    <input type="text" id="nav-search" placeholder="Search" />
    
    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Egis2D.html">Egis2D</a></li><li><a href="AnimateLayer.html">AnimateLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="AnimateLayer.html#render">render</a></li><li data-type='method' style='display: none;'><a href="AnimateLayer.html#setDatas">setDatas</a></li><li data-type='method' style='display: none;'><a href="AnimateLayer.html#stop">stop</a></li><li data-type='method' style='display: none;'><a href="AnimateLayer.html#move">move</a></li><li data-type='method' style='display: none;'><a href="AnimateLayer.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="AnimateLayer.html#start">start</a></li></ul></li><li><a href="BaseLayer.html">BaseLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="BaseLayer.html#addTo">addTo</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#remove">remove</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#move">move</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#getBaseLayerId">getBaseLayerId</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#getIncludeLayers">getIncludeLayers</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#render">render</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#refresh">refresh</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#getVisible">getVisible</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#bindEvent">bindEvent</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#unbindEvent">unbindEvent</a></li><li data-type='method' style='display: none;'><a href="BaseLayer.html#destroy">destroy</a></li></ul></li><li><a href="FlowLayer.html">FlowLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="FlowLayer.html#setDatas">setDatas</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#getDatas">getDatas</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#setLineWidth">setLineWidth</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#getLineWidth">getLineWidth</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#setColors">setColors</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#getColors">getColors</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#setSegLen">setSegLen</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#setSpeed">setSpeed</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#getSpeed">getSpeed</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#start">start</a></li><li data-type='method' style='display: none;'><a href="FlowLayer.html#stop">stop</a></li></ul></li><li><a href="GridCellLayer.html">GridCellLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridCellLayer.html#setBounds">setBounds</a></li><li data-type='method' style='display: none;'><a href="GridCellLayer.html#setCellSize">setCellSize</a></li><li data-type='method' style='display: none;'><a href="GridCellLayer.html#move">move</a></li></ul></li><li><a href="GridFeatureLayer.html">GridFeatureLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridFeatureLayer.html#addEleSymbols">addEleSymbols</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayer.html#removeEleSymbols">removeEleSymbols</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayer.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayer.html#getVisible">getVisible</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayer.html#destroy">destroy</a></li></ul></li><li><a href="GridFeatureLayerExt.html">GridFeatureLayerExt</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridFeatureLayerExt.html#addEleSymbols">addEleSymbols</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayerExt.html#removeEleSymbols">removeEleSymbols</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayerExt.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayerExt.html#getVisible">getVisible</a></li><li data-type='method' style='display: none;'><a href="GridFeatureLayerExt.html#destroy">destroy</a></li></ul></li><li><a href="GridTileExtLayer.html">GridTileExtLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#setUrls">setUrls</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#getRequestParam">getRequestParam</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#setRequestParam">setRequestParam</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#setLayers">setLayers</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#setLayersFilter">setLayersFilter</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="GridTileExtLayer.html#destroy">destroy</a></li></ul></li><li><a href="GridTileLayer.html">GridTileLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridTileLayer.html#bindEvent">bindEvent</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setTileUrl">setTileUrl</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setLayers">setLayers</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setMaxLevel">setMaxLevel</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setMaxDevCount">setMaxDevCount</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setCacheId">setCacheId</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#refresh">refresh</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#render">render</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setDevCache">setDevCache</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#getDevCache">getDevCache</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#setVisible">setVisible</a></li><li data-type='method' style='display: none;'><a href="GridTileLayer.html#destroy">destroy</a></li></ul></li><li><a href="GridVectorLayer.html">GridVectorLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#bindEvent">bindEvent</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setGridOptions">setGridOptions</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setVecUrl">setVecUrl</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#getVecUrl">getVecUrl</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setDisplaySchema">setDisplaySchema</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#getDisplaySchema">getDisplaySchema</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setDevCache">setDevCache</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#getDevCache">getDevCache</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setAutoRender">setAutoRender</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#getAutoRender">getAutoRender</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#getVecRequestData">getVecRequestData</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setVecRequestData">setVecRequestData</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#refresh">refresh</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#render">render</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setLockViewDevs">setLockViewDevs</a></li><li data-type='method' style='display: none;'><a href="GridVectorLayer.html#setVisible">setVisible</a></li></ul></li><li><a href="SymbolLayer.html">SymbolLayer</a><ul class='methods'><li data-type='method' style='display: none;'><a href="SymbolLayer.html#addEleDevs">addEleDevs</a></li><li data-type='method' style='display: none;'><a href="SymbolLayer.html#removeEleDevs">removeEleDevs</a></li><li data-type='method' style='display: none;'><a href="SymbolLayer.html#move">move</a></li></ul></li><li><a href="MSManager.html">MSManager</a></li><li><a href="DevCache.html">DevCache</a><ul class='methods'><li data-type='method' style='display: none;'><a href="DevCache.html#setAddDevs">setAddDevs</a></li><li data-type='method' style='display: none;'><a href="DevCache.html#setUpdateDevs">setUpdateDevs</a></li><li data-type='method' style='display: none;'><a href="DevCache.html#setRemoveDevs">setRemoveDevs</a></li><li data-type='method' style='display: none;'><a href="DevCache.html#clearCache">clearCache</a></li><li data-type='method' style='display: none;'><a href="DevCache.html#getCache">getCache</a></li><li data-type='method' style='display: none;'><a href="DevCache.html#clone">clone</a></li></ul></li><li><a href="DisplaySchema.html">DisplaySchema</a><ul class='methods'><li data-type='method' style='display: none;'><a href="DisplaySchema.html#addSchema">addSchema</a></li><li data-type='method' style='display: none;'><a href="DisplaySchema.html#removeSchemaByLayerId">removeSchemaByLayerId</a></li><li data-type='method' style='display: none;'><a href="DisplaySchema.html#setSchema">setSchema</a></li><li data-type='method' style='display: none;'><a href="DisplaySchema.html#getSchema">getSchema</a></li><li data-type='method' style='display: none;'><a href="DisplaySchema.html#getSchemaByLayerId">getSchemaByLayerId</a></li></ul></li><li><a href="Options.html">Options</a></li><li><a href="SelectionSet.html">SelectionSet</a><ul class='methods'><li data-type='method' style='display: none;'><a href="SelectionSet.html#setTextSourceId">setTextSourceId</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setAutoUpdate">setAutoUpdate</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setDevOidKey">setDevOidKey</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setAutoFlicker">setAutoFlicker</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setIsLinearFlicker">setIsLinearFlicker</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setLineWidth">setLineWidth</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setFillOpacity">setFillOpacity</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setDataSourceCallback">setDataSourceCallback</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setSelectionColor">setSelectionColor</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setSpeed">setSpeed</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setMinOpacity">setMinOpacity</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setMaxOpacity">setMaxOpacity</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#isFlicking">isFlicking</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setFlicker">setFlicker</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#exportImage">exportImage</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setDevs">setDevs</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#getDevs">getDevs</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#addDevs">addDevs</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#removeDevs">removeDevs</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#setMode">setMode</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#render">render</a></li><li data-type='method' style='display: none;'><a href="SelectionSet.html#clear">clear</a></li></ul></li><li><a href="EleFillSymbol.html">EleFillSymbol</a><ul class='methods'><li data-type='method' style='display: none;'><a href="EleFillSymbol.html#toJSON">toJSON</a></li><li data-type='method' style='display: none;'><a href="EleFillSymbol.html#.fromJSON">fromJSON</a></li></ul></li><li><a href="EleLineSymbol.html">EleLineSymbol</a><ul class='methods'><li data-type='method' style='display: none;'><a href="EleLineSymbol.html#toJSON">toJSON</a></li><li data-type='method' style='display: none;'><a href="EleLineSymbol.html#.fromJSON">fromJSON</a></li></ul></li><li><a href="ElePointSymbol.html">ElePointSymbol</a><ul class='methods'><li data-type='method' style='display: none;'><a href="ElePointSymbol.html#toJSON">toJSON</a></li><li data-type='method' style='display: none;'><a href="ElePointSymbol.html#.fromJSON">fromJSON</a></li></ul></li><li><a href="EleSymbol.html">EleSymbol</a><ul class='methods'><li data-type='method' style='display: none;'><a href="EleSymbol.html#mmToPixel">mmToPixel</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#pixelToMM">pixelToMM</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#getDevKey">getDevKey</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#getLayerKey">getLayerKey</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#getGeometry">getGeometry</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#setGeometry">setGeometry</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#refresh">refresh</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#getType">getType</a></li><li data-type='method' style='display: none;'><a href="EleSymbol.html#getAttribute">getAttribute</a></li></ul></li><li><a href="EleTextSymbol.html">EleTextSymbol</a><ul class='methods'><li data-type='method' style='display: none;'><a href="EleTextSymbol.html#toJSON">toJSON</a></li><li data-type='method' style='display: none;'><a href="EleTextSymbol.html#.fromJSON">fromJSON</a></li></ul></li><li><a href="HighLightTool.html">HighLightTool</a><ul class='methods'><li data-type='method' style='display: none;'><a href="HighLightTool.html#setSpeed">setSpeed</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#setColor">setColor</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#setMinOpacity">setMinOpacity</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#setMaxOpacity">setMaxOpacity</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#isFlicking">isFlicking</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#setDatas">setDatas</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#getDatas">getDatas</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#start">start</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#pause">pause</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#resume">resume</a></li><li data-type='method' style='display: none;'><a href="HighLightTool.html#stop">stop</a></li></ul></li><li><a href="LocateTool.html">LocateTool</a><ul class='methods'><li data-type='method' style='display: none;'><a href="LocateTool.html#locateByCenter">locateByCenter</a></li><li data-type='method' style='display: none;'><a href="LocateTool.html#locateByBounds">locateByBounds</a></li></ul></li><li><a href="SelectTool.html">SelectTool</a><ul class='methods'><li data-type='method' style='display: none;'><a href="SelectTool.html#setTextSourceId">setTextSourceId</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setDrawStyle">setDrawStyle</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setSelectedColor">setSelectedColor</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setSelectTypes">setSelectTypes</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setIsAddOn">setIsAddOn</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setDrawType">setDrawType</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setIncludeAllLayers">setIncludeAllLayers</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setLayers">setLayers</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setFilterLayers">setFilterLayers</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setBorderStyle">setBorderStyle</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#setFillStyle">setFillStyle</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#disable">disable</a></li><li data-type='method' style='display: none;'><a href="SelectTool.html#destroy">destroy</a></li></ul></li><li><a href="SnapTool.html">SnapTool</a><ul class='methods'><li data-type='method' style='display: none;'><a href="SnapTool.html#setSnapColors">setSnapColors</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#snapByLocation">snapByLocation</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#addGridCell">addGridCell</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#removeGridCell">removeGridCell</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#clearGridCell">clearGridCell</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setOptions">setOptions</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setFilterLayers">setFilterLayers</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setFillTypes">setFillTypes</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setLayers">setLayers</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setLayersExt">setLayersExt</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setTolerance">setTolerance</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setTypes">setTypes</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setPriority">setPriority</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setSnapPointVisible">setSnapPointVisible</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#setExcludeTerminalPoint">setExcludeTerminalPoint</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#enable">enable</a></li><li data-type='method' style='display: none;'><a href="SnapTool.html#disable">disable</a></li></ul></li><li><a href="ColorUtil.html">ColorUtil</a><ul class='methods'><li data-type='method' style='display: none;'><a href="ColorUtil.html#.colorTenToRGBA">colorTenToRGBA</a></li><li data-type='method' style='display: none;'><a href="ColorUtil.html#.fixColorToTen">fixColorToTen</a></li><li data-type='method' style='display: none;'><a href="ColorUtil.html#.hexToRgba">hexToRgba</a></li><li data-type='method' style='display: none;'><a href="ColorUtil.html#.fixColorToRGBA">fixColorToRGBA</a></li></ul></li><li><a href="DataUtil.html">DataUtil</a><ul class='methods'><li data-type='method' style='display: none;'><a href="DataUtil.html#.getUUID">getUUID</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.getSymbolIdBySubtypeId">getSymbolIdBySubtypeId</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.transCoordsMtoD">transCoordsMtoD</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.transCoordsDtoM">transCoordsDtoM</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.degreeToMercator">degreeToMercator</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.mercatorToDegree">mercatorToDegree</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.flatArray">flatArray</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcDeviceBoundary">calcDeviceBoundary</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcPointDevCenter">calcPointDevCenter</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcDeviceTerminal">calcDeviceTerminal</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcDistance">calcDistance</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcCrossPoint">calcCrossPoint</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.mmToPixel">mmToPixel</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.pixelToMM">pixelToMM</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.areaMeasure">areaMeasure</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.angleMeasure">angleMeasure</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.fixPolygon">fixPolygon</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.calcBounds">calcBounds</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.getTileBounds">getTileBounds</a></li><li data-type='method' style='display: none;'><a href="DataUtil.html#.getTileCenter">getTileCenter</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#EleSymbolEvent">EleSymbolEvent</a></li><li><a href="global.html#GridVectorLayerEvent">GridVectorLayerEvent</a></li><li><a href="global.html#SnapEvent">SnapEvent</a></li><li><a href="global.html#SelectEvent">SelectEvent</a></li><li><a href="global.html#lineTypes">lineTypes</a></li><li><a href="global.html#refData">refData</a></li></ul>
</nav>

<div id="main">
    
    <h1 class="page-title">DataUtil</h1>
    

    




<section>

<header>
    
        <h2>
        DataUtil
        </h2>
        
            <div class="class-description usertext">公共工具</div>
        
    
</header>

<article>
    

    

    

    
    
    

     

    

    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    <h4 class="name" id=".getUUID"><span class="type-signature">(static) </span>getUUID<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    生成UUID
</div>

























<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">string</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getSymbolIdBySubtypeId"><span class="type-signature">(static) </span>getSymbolIdBySubtypeId<span class="signature">(subTypeId)</span><span class="type-signature"> &rarr; {Array}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    根据设备子类型获取符号ID
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>subTypeId</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>
|

<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">返回一个符号ID关联的数据集合，集合中的每个数据元素包含symbolid和condition，其中condition中是符号辨识所需的条件</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".transCoordsMtoD"><span class="type-signature">(static) </span>transCoordsMtoD<span class="signature">(arr)</span><span class="type-signature"></span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    批量墨卡托转经纬度(直接修改原始坐标)
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>



















        
            

    

    <h4 class="name" id=".transCoordsDtoM"><span class="type-signature">(static) </span>transCoordsDtoM<span class="signature">(arr)</span><span class="type-signature"></span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    批量经纬度转墨卡托(直接修改原始坐标)
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>



















        
            

    

    <h4 class="name" id=".degreeToMercator"><span class="type-signature">(static) </span>degreeToMercator<span class="signature">(latlng)</span><span class="type-signature"> &rarr; {Object}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    经纬度转莫卡托
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>latlng</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last">经纬度坐标，格式为{lng:numbr,lat:number}</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    point - 莫卡托坐标，格式为{x: number, y: number}
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Object</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".mercatorToDegree"><span class="type-signature">(static) </span>mercatorToDegree<span class="signature">(point)</span><span class="type-signature"> &rarr; {Object}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    莫卡托转经纬度
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>point</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last">莫卡托坐标，格式{x:number,y:number}</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    - 经纬度坐标，格式{lng: number, lat: number}
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Object</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".flatArray"><span class="type-signature">(static) </span>flatArray<span class="signature">(arr)</span><span class="type-signature"> &rarr; {Array}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    该方法主要用来兼容一些低版本浏览器的Array缺少flat方法
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>arr</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array</span>


            
            </td>

            

            

            <td class="description last">多维数组</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".calcDeviceBoundary"><span class="type-signature">(static) </span>calcDeviceBoundary<span class="signature">(symbolCenter, symbolSize)</span><span class="type-signature"> &rarr; {Array}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算符号边界矩形
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>symbolCenter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last">中心点,格式{lng:119,lat:31}</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>symbolSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">符号大小</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".calcPointDevCenter"><span class="type-signature">(static) </span>calcPointDevCenter<span class="signature">(shape)</span><span class="type-signature"></span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算点设备（线坐标）的中心点
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>shape</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>



















        
            

    

    <h4 class="name" id=".calcDeviceTerminal"><span class="type-signature">(static) </span>calcDeviceTerminal<span class="signature">(symbolId, devSubType, symbolCenter, symbolAngle, symbolSize, scaleFactor, terminalOffsets, isClockwise)</span><span class="type-signature"> &rarr; {Array}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算设备端子
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>symbolId</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">符号ID</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>devSubType</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">设备子类型</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>symbolCenter</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">设备中心点，格式为{lng:118.456456,24.48978}</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>symbolAngle</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">设备角度（顺时针旋转的角度）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>symbolSize</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">符号大小（以思极地图渲染点符号的size为基准）</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>scaleFactor</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            
                <td class="default">
                
                    <code>0</code>
                
                </td>
            

            <td class="description last">端子偏移系数，默认为1，如果端子位置往符号内偏了，可以设置该参数为大于1的一个数字；反之如果端子位置跑到符号外面去了，可以设置该数字为一个小于1的数</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>terminalOffsets</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array</span>


            
            </td>

            

            
                <td class="default">
                
                    <code>null</code>
                
                </td>
            

            <td class="description last">端子偏移量,格式为二维数组，例如[[0.9,0],[-0.9,0]]表示第一个端子横向偏移0.9，纵向偏移0，第二个端子横向偏移-0.9.纵向偏移0</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>isClockwise</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            

            
                <td class="default">
                
                    <code>null</code>
                
                </td>
            

            <td class="description last">是否使用顺时针，默认为null，此时根据egisV2.options.isClockwise的配置来确定是否顺时针。（GridVectorLayer中计算端子时该值为false,且无法更改）</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    terminalCoords - 返回一组点坐标
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".calcDistance"><span class="type-signature">(static) </span>calcDistance<span class="signature">(p1, p2)</span><span class="type-signature"> &rarr; {number}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算两点间距离
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>p1</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last">第一个点的位置（屏幕像素坐标） ，格式为{x:number,y:number}</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>p2</code></td>
            

            <td class="type">
            
                
<span class="param-type">Object</span>


            
            </td>

            

            

            <td class="description last">第二个点的位置（屏幕像素坐标） ，格式为{x:number,y:number}</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    distance - 像素距离
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".calcCrossPoint"><span class="type-signature">(static) </span>calcCrossPoint<span class="signature">(p1, p2, p)</span><span class="type-signature"></span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算点到线段的交点
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>p1</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">线段起点(屏幕坐标)</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>p2</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">线段终点(屏幕坐标)</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>p</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">动态点</td>
        </tr>

    
    </tbody>
</table>



















        
            

    

    <h4 class="name" id=".mmToPixel"><span class="type-signature">(static) </span>mmToPixel<span class="signature">(mm)</span><span class="type-signature"> &rarr; {number}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    毫米转像素
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>mm</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            

            

            <td class="description last">毫米值</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".pixelToMM"><span class="type-signature">(static) </span>pixelToMM<span class="signature">(pixel)</span><span class="type-signature"> &rarr; {number}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    像素转毫米
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>pixel</code></td>
            

            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>

            

            

            <td class="description last">毫米值</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".areaMeasure"><span class="type-signature">(static) </span>areaMeasure<span class="signature">(points)</span><span class="type-signature"> &rarr; {number}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算多边形面积
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>points</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array.&lt;Point></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".angleMeasure"><span class="type-signature">(static) </span>angleMeasure<span class="signature">(startP, middleP, endP)</span><span class="type-signature"> &rarr; {number}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算角度(点为屏幕像素，而不是经纬度)
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>startP</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">起点</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>middleP</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">端点</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>endP</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last">结束点</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">number</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".fixPolygon"><span class="type-signature">(static) </span>fixPolygon<span class="signature">(polygon)</span><span class="type-signature"> &rarr; {Array}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    将对角线坐标转换为5点多边形（矩形）
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>polygon</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array</span>


            
            </td>

            

            

            <td class="description last">可以是[[[xmin,ymin],[xmax,ymax]]]或 [[xmin,ymin],[xmax,ymax]]</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    Array - 多边形坐标
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".calcBounds"><span class="type-signature">(static) </span>calcBounds<span class="signature">(coordinates, convertToPolygon)</span><span class="type-signature"> &rarr; {Array.&lt;Array.&lt;number>>}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    计算边界
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>coordinates</code></td>
            

            <td class="type">
            
                
<span class="param-type">Array</span>


            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last">坐标集合</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>convertToPolygon</code></td>
            

            <td class="type">
            
                
<span class="param-type">Boolean</span>


            
            </td>

            

            
                <td class="default">
                
                    <code>false</code>
                
                </td>
            

            <td class="description last">是否转换为闭合面的坐标集合</td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        
<div class="param-desc">
    - 一个矩形范围（对角线或面）
</div>



<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array.&lt;Array.&lt;number>></span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getTileBounds"><span class="type-signature">(static) </span>getTileBounds<span class="signature">(z, x, y, tileSize)</span><span class="type-signature"> &rarr; {Object}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    根据行列号层级计算切片范围
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>z</code></td>
            

            <td class="type">
            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>x</code></td>
            

            <td class="type">
            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>y</code></td>
            

            <td class="type">
            
            </td>

            

            
                <td class="default">
                
                </td>
            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>tileSize</code></td>
            

            <td class="type">
            
            </td>

            

            
                <td class="default">
                
                    <code>256</code>
                
                </td>
            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Object</span>


    </dd>
</dl>

    



        
            

    

    <h4 class="name" id=".getTileCenter"><span class="type-signature">(static) </span>getTileCenter<span class="signature">(z, x, y)</span><span class="type-signature"> &rarr; {Array.&lt;number>}</span></h4>

    




<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>





<div class="description usertext">
    获取指定切片的中心点
</div>











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>z</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>x</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>y</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>
















<h5>Returns:</h5>

        


<dl class="param-type">
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">Array.&lt;number></span>


    </dd>
</dl>

    



        
    

    

    
</article>

</section>




    
    
</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Jul 13 2023 19:29:07 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>

<script src="scripts/search.js" defer></script>


<script src="scripts/collapse.js" defer></script>


</body>
</html>